package com.example.score.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName("t_question_score")
public class QuestionScore {
    private Long id;

    private Long examDetailId;

    private Long studentSubmitId;

    private Long questionId;

    private String studentAnswer;

    private Double score;

    private Integer isRight;

    private Date createdTime;

    private Date updatedTime;
    // 关联字段
    @TableField(exist = false)
    private Long questionNum;
    @TableField(exist = false)
    private Integer isSubjectiveItem;
    @TableField(exist = false)
    private Double questionScore; // 题目满分

    //得分率
    private String examScoreRate;

    private String knowledge;

    private QuestionRight questionRight;


    public String getKnowledge() {
        return knowledge;
    }

    public void setKnowledge(String knowledge) {
        this.knowledge = knowledge;
    }

    public String getExamScoreRate() {
        return examScoreRate;
    }

    public void setExamScoreRate(String examScoreRate) {
        this.examScoreRate = examScoreRate;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getExamDetailId() {
        return examDetailId;
    }

    public void setExamDetailId(Long examDetailId) {
        this.examDetailId = examDetailId;
    }

    public Long getStudentSubmitId() {
        return studentSubmitId;
    }

    public void setStudentSubmitId(Long studentSubmitId) {
        this.studentSubmitId = studentSubmitId;
    }

    public Long getQuestionId() {
        return questionId;
    }

    public void setQuestionId(Long questionId) {
        this.questionId = questionId;
    }

    public String getStudentAnswer() {
        return studentAnswer;
    }

    public void setStudentAnswer(String studentAnswer) {
        this.studentAnswer = studentAnswer;
    }

    public Double getScore() {
        return score;
    }

    public void setScore(Double score) {
        this.score = score;
    }

    public Integer getIsRight() {
        return isRight;
    }

    public void setIsRight(Integer isRight) {
        this.isRight = isRight;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Date getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }

    public Long getQuestionNum() {
        return questionNum;
    }

    public Integer getIsSubjectiveItem() {
        return isSubjectiveItem;
    }

    public void setIsSubjectiveItem(Integer isSubjectiveItem) {
        this.isSubjectiveItem = isSubjectiveItem;
    }

    public Double getQuestionScore() {
        return questionScore;
    }

    public void setQuestionScore(Double questionScore) {
        this.questionScore = questionScore;
    }

    public void setQuestionNum(Long questionNum) {
        this.questionNum = questionNum;
    }
}